using System;
using System.Collections.Generic;
using System.Linq;

namespace TestSupport
{
	public class EventRecorder
	{
		private struct Recording
		{
			public Recording(object sender, EventArgs args) : this()
			{
				this.Sender = sender;
				this.Args = args;
			}


			private object Sender { get; set; }
			private EventArgs Args { get; set; }
		}


		private readonly List<Recording> recordings = new List<Recording>();


		public void Record(object sender, EventArgs args)
		{
			this.recordings.Add(new Recording(sender, args));
		}
	}
}